package com.qf.smsplatform.mapper;


import com.qf.smsplatform.pojo.TDirtyword;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/*2021/10/26*/public interface TDirtywordMapper {

    @Select("select * from t_dirtyword where id=#{id}")
    TDirtyword findDirtyById(Long id);

    @Insert("insert into t_dirtyword (dirtyword,owntype,creater) values (#{dirtyword},#{owntype},#{creater})")
    void addDirtyword(TDirtyword dirtyword);

    @Select("select * from t_dirtyword")
    List<TDirtyword> selectAll();

    Integer deleteByIds(@Param("ids") List<Integer> ids, @Param("creater") Long creater);

    Integer deleteByAdmin(@Param("ids") List<Integer> ids);

    void updateDirtyword(TDirtyword dirtyword);
}
